package com.yc.springclouduser.web;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class UserAction {

    @RequestMapping("user")
    public String index(HttpServletRequest request){
        int port = request.getServerPort();
        return "Index:" + port;
    }



}
